import UserController from "../../controller/UserController.js";


let routerList=[
    //获取
    ["/user/get",'get',UserController.get],
    //注册
    ["/user/register",'post',UserController.get]
    //登录
    ["/user/login",'post',UserController.login]
];


export const userRouter=(router)=>{
    routerList.forEach((item)=>{
        router[item[1]](item[0],item[2]);
    })
  }
